package com.book.manager.dao;

import com.book.manager.entity.Users;
import com.book.manager.entity.msg;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Mapper
@Component
public interface MsgMapper {


    /**
     * 模糊分页查询消息
     * @param keyword 关键字
     * @return
     */
    List<msg> findMsgListByLike(String keyword);

    /**
     * 编辑消息
     * @param map
     * @return
     */
    int updateMsg(Map<String,Object> map);
}
